package com.xxjh.brs.ftp.common.exceptions;

import com.xxjh.brs.ftp.common.api.enums.ResponseStatus;

/**
 * @author CHENCHEN
 * @title 统一异常封装
 * @company 新兴际华科技（天津）有限公司
 * @create 2024-07-03 19:21
 */
public class ConditionException extends RuntimeException {

    private Integer code;

    public ConditionException(ResponseStatus status){
        super(status.getMessage());
        this.code = status.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
